package org.dromara.netbar.domain.bo;

import org.dromara.netbar.domain.NetbarMemberLevel;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 会员等级管理业务对象 netbar_member_level
 *
 * @author Lion Li
 * @date 2025-07-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = NetbarMemberLevel.class, reverseConvertGenerate = false)
public class NetbarMemberLevelBo extends BaseEntity {

    /**
     * 等级ID
     */
    @NotNull(message = "等级ID不能为空", groups = { EditGroup.class })
    private Long levelId;

    /**
     * 等级名称（如黄金/铂金）
     */
    @NotBlank(message = "等级名称（如黄金/铂金）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String levelName;

    /**
     * 单次充值阈值
     */
    private BigDecimal minRecharge;

    /**
     * 是否自动升级
     */
    private String isAutoUpgrade;

    /**
     * 备注
     */
    private String remark;


}
